package pluto;
import java.util.Random ;
public class Pig {
    private String id="94";
    private String Name="猪";
    private String colar="白色";
    private String weight="300kg" ;
    private String height="80cm";
    private String state;
    Random r=new Random();
    int r5=r.nextInt(3);
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getColar() {
        return colar;
    }

    public void setColar(String colar) {
        this.colar = colar;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getState() {
        return state;
    }

    public void setState() {
        switch(r5)
        {
            case 0:
            {
                this.state="我饿了，我想吃饭555";
            }
                break;
            case 1:
            {
                this.state="我要睡觉，别打扰";
            }
                break;
            case 2:
            {
                this.state="我在玩原神（看我斩尽牛杂~~~）";
            }
                break;
            case 3:
            {
                this.state="我在学java";
            }
                break;
        }
    }
    public void show()
    {
        setState();
        System.out.println("id:"+id);
        System.out.println("名称:"+Name);
        System.out.println("颜色:"+colar);
        System.out.println("体重:"+weight);
        System.out.println("身高:"+height);
        System.out.println("状态:"+state);
    }
}
